<?php
error_reporting ( E_ALL );

define ( 'DIR_SEP', DIRECTORY_SEPARATOR );
define ( 'APP_ROOT', substr ( dirname ( __FILE__ ), 0, - 2 ) . DIR_SEP );
define ( 'MAGIC_QUOTES_GPC', get_magic_quotes_gpc () );
define ( 'CHARSET', 'utf-8' );
define ( 'TIMEZONE', "Asia/Shanghai" );
define ( 'DEBUG', true );
define ( 'DEFAULT_MODULE', 'index' );
define ( 'DEFAULT_ACTION', 'index' );


set_magic_quotes_runtime ( 0 );
session_start ();
//Run Time，Use Time() Minutes this $mtime
$mtime = explode ( ' ', microtime () );
$timestart = $mtime [1] + $mtime [0];
$timestamp = time ();

include_once APP_ROOT . "config.inc.php";
require_once APP_ROOT . 'MidLite' . DIR_SEP . 'init.inc.php';
//加载路径配置

Config::set ( $config );
Config::set ('custom', 'corrie' );
isset ( $autoload ) && Mid::autoload ( $autoload );

?>